package com.cy.app;

import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;

import com.cy.io.Log;

public class MyView extends RelativeLayout {
    public MyView(Context context) {
        this(context,null);
    }

    public MyView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    public MyView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
    }

    @Override
    public boolean dispatchKeyEvent(KeyEvent event) {
        Log.e("keyevent:"+event);
        return super.dispatchKeyEvent(event);
    }
}
